package com.itcast.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
//@NoArgsConstructor
@Accessors(chain = true)
public class Gc implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品编号
     */
    private Integer gid;

    /**
     * 评论编号
     */
    private Integer cid;
    /**
     * 商品评论
     */

    private Commont  commont;
    private  List<Commont> commontList;

    public  Gc(){}
    public Gc(Integer gid, Integer cid) {
        this.gid = gid;
        this.cid = cid;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Commont getCommont() {
        return commont;
    }

    public void setCommont(Commont commont) {
        this.commont = commont;
    }

    public List<Commont> getCommontList() {
        return commontList;
    }

    public void setCommontList(List<Commont> commontList) {
        this.commontList = commontList;
    }
}
